package TestDemo;

import java.util.Scanner;

public class TestDemo1 {
    public static void main(String[] args) {
        int n = 0;
        int[] arr = new int[51];
        Scanner sc = new Scanner(System.in);
        while(true) {
            n = sc.nextInt();
            if (n == 0) break;
            if (n <= 50) arr[n]++;
        }
        for (int i = 1; i < arr.length; i++) {
            if (arr[i] > 0) {
                System.out.println(i+"在数组中出现的次数为"+arr[i]+"次");
            }
        }
    }
}
